<!DOCTYPE html>
<html>
<head>
</head>
<body>
	<table id="yhxxDg" class="easyui-datagrid"  width="100%" height="100%"
			data-options="rownumbers:true,
			            singleSelect:true,
			            url:'${mainDomain}/yhxx/list.action',
			            method:'get',
			            toolbar:'#tb',
			            onClickCell: onClickCell"
			            pagination="true">
		<thead>
			<tr>
			    <th data-options="field:'yhid',width:80,align:'right',sortable:true">用户ID</th>
				<th data-options="field:'qyqc',width:200,align:'right',formatter:qyqcFormatter,sortable:true">企业名称</th>
				<th data-options="field:'yhlx',width:80,align:'right',formatter:qylxFormatter,sortable:true">企业类型</th>
				<th data-options="field:'qydt',width:150,align:'right'">企业动态</th>
				<th data-options="field:'lxrxm',width:80,align:'right'">联系人姓名</th>
				<th data-options="field:'lxrsj',width:120,align:'right'">联系人手机</th>
				<th data-options="field:'lxremail',width:150,align:'right'">联系人邮箱</th>
				<th data-options="field:'sfdj',width:150,align:'right',formatter:isdjFormatter">是否冻结</th>
				<th data-options="field:'ylzd2',width:150,align:'right',formatter:istjFormatter">是否推荐会员</th>
				<th data-options="field:'hydj',width:80,align:'right',formatter:function(val, row){
				    return row.hydjinfoVO.djmc;
				}, editor:{
                                                                                                        type:'combobox',
                                                                                                        options:{
                                                                                                            valueField:'id',
                                                                                                            textField:'djmc',
                                                                                                            method:'get',
                                                                                                            url:'${mainDomain}/hydj/comboxlist.action',
                                                                                                            required:true
                                                                                                        }
                                                                                                    }">会员等级</th>
			</tr>
		</thead>
	</table>
	<div id="tb" style="padding:20px;height:auto">
		<div>
			会员等级：
			<input id="hydj" style="width:100px" class="easyui-combobox" url="${mainDomain}/hydj/comboxlist.action" valueField="id" textField="djmc"></input>
			用户类型：
            <select class="easyui-combobox" id="yhlx" name="yhlx" style="width:80px;">
            	<option value='' selected>请选择</option>
				<option value="0">船贷</option>
				<option value="1">货贷</option>
				<option value="2">船公司</option>
				<option value="4">货源企业</option>
				<option value="5">集卡运输企业</option>
				<option value="6">仓库</option>
				<option value="7">港口</option>
				<option value="8">个人</option>
			</select>
			企业名称：
			<input type="text" id="qyqc">
			联系人姓名：
            <input type="text" id="lxrxm" style="width:60px;">
			<a href="javascript:void(0);" onclick="queryData()" class="easyui-linkbutton" iconCls="icon-search">查询</a>
			<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-edit" onclick="pwdDlg();">修改密码</a>
			<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-edit" onclick="settjDlg();">设置推荐会员</a>
			<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-edit" onclick="setdjDlg();">设置冻结</a>
		</div>
	</div>

    <!--修改密码-->
	<div id="pwdDlg" class="easyui-dialog" style="padding:5px;width:400px;height:200px;"
    			closed="true" data-options="modal:true" title="修改密码" buttons="#pwdDlg-buttons">
    	<form id="pwdfm" class="easyui-form" method="post" data-options="novalidate:true" style="padding:10px 20px 10px 40px;" action="${mainDomain}/dlxx/pwd.action">
    	    <input type="hidden" name="id" />
    		<p>密码: <input name="mm" id="mm" type="password" style="width:300px" class="easyui-validatebox textbox" data-options="prompt:'请输入密码.',required:true,validType:'length[6,16]'"></p>
    		<p>确认密码: <input id="confirm" name="confirm" type="password" style="width:300px" class="easyui-validatebox textbox" validType="notEquals['#mm', '两次密码输入不一致.']" required="true"></p>
    	</form>
    </div>
    <div id="pwdDlg-buttons">
        <a href="#" class="easyui-linkbutton" iconCls="icon-ok" onclick="javascript:pwdSave();">Ok</a>
        <a href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#pwdDlg').dialog('close')">Cancel</a>
    </div>
    
    <div id="settjDlg" class="easyui-dialog" style="width:400px;height:240px"
		data-options="title:'设置推荐会员',buttons:'#bb',modal:true" closed="true">
		
		<div class="easyui-panel" style="width:400px;border-style:none;">
			<div style="padding:10px 60px 20px 60px">
		    <form id="ff" class="easyui-form" method="post" action="${mainDomain}/yhxx/tjhy.action">
		    	<input type="hidden" name="id" />
		    	<table cellpadding="5">
		    		<tr>
		    			<td>是否推荐:</td>
		    			<td>
		    				<select id="ylzd2" class="easyui-combobox" name="ylzd2">
							    <option value="0">否</option>
							    <option value="1">是</option>
							</select>
		    			</td>
		    		</tr>
		    		<tr>
		    			<td>企业动态:</td>
		    			<td><input class="easyui-validatebox textbox" id="qydt" name="qydt" data-options="multiline:true,validType:'length[0,300]'" style="height:60px;width:220px"></input></td>
		    		</tr>
		    	</table>
		    </form>
		    </div>
		</div>
	</div>
	<div id="bb">
		<a href="#" class="easyui-linkbutton" iconCls="icon-ok" onclick="javascript:tjSave();">保存</a>
		<a href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#settjDlg').dialog('close')">关闭</a>
	</div>
	

	<div id="setdjDlg" class="easyui-dialog" style="width:400px;height:240px"
		data-options="title:'设置冻结',buttons:'#dj',modal:true" closed="true">
		
		<div class="easyui-panel" style="width:400px;border-style:none;">
			<div style="padding:10px 60px 20px 60px">
		    <form id="djform" class="easyui-form" method="post" action="${mainDomain}/dlxx/djset.action">
		    	<input type="hidden" name="id" />
		    	<div class="fitem">
	                <label>是否冻结:</label>
	                <select id="sfdj" class="easyui-combobox" name="sfdj">
					    <option value="0">否</option>
					    <option value="1">是</option>
					</select>
	            </div>
	            <div class="fitem">
	                <label>冻结类型:</label>
	                <select id="djlx" class="easyui-combobox" name="djlx" data-options="prompt:'请选择冻结类型.',required:true">
					    <option value="1">一周</option>
					    <option value="2">一月</option>
					    <option value="3">半年</option>
					    <option value="4">一年</option>
					    <option value="5">永久</option>
					</select>
	            </div>
		    </form>
		    </div>
		</div>
	</div>
	<div id="dj">
		<a href="#" class="easyui-linkbutton" iconCls="icon-ok" onclick="javascript:djSave();">保存</a>
		<a href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#setdjDlg').dialog('close')">关闭</a>
	</div>
	<script>
		var mainDomain = "${mainDomain}",miscDomain = '${mainDomain}',staticDomain = '${staticDomain}';
	</script>
	<script type="text/javascript" src="${mainDomain}/statics/js/backend/reviewed/yhxx/list.js?version=1002"></script>
	<style type="text/css">
        #djform{
            margin:0;
            padding:10px 30px;
        }
        .ftitle{
            font-size:14px;
            font-weight:bold;
            padding:5px 0;
            margin-bottom:10px;
            border-bottom:1px solid #ccc;
        }
        .fitem{
            margin-bottom:5px;
        }
        .fitem label{
            display:inline-block;
            width:80px;
        }
        .fitem select{
            width:160px;
        }
    </style>
</body>
</html>